//
//  Person+mult.m
//  001-消息转发机制
//
//  Created by hzg on 2018/4/26.
//  Copyright © 2018年 tz. All rights reserved.
//

#import "Person+mult.h"
#import <objc/runtime.h>

@implementation Person (mult)

const char* name = "name";

- (void) setNick:(NSString *)nick {
    objc_setAssociatedObject(self, &name, nick,OBJC_ASSOCIATION_COPY_NONATOMIC);
}

- (NSString*)nick {
    return objc_getAssociatedObject(self, &name);
}

@end
